export function tranListToTreeData(list, id) {
  var arr = []
  list.forEach(item => {
    if (item.pid === id) {
      item.children = tranListToTreeData(list, item.id)
      arr.push(item)
    }
  })
  return arr
}
